.class Les/mg$e;
.super Ljava/lang/Object;
.source "AppFolderInfoManager.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Les/mg;->a(Landroid/content/Context;Ljava/lang/String;Les/mg$n;)Landroid/graphics/drawable/Drawable;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/fs/g;

.field final synthetic b:Landroid/os/ConditionVariable;

.field final synthetic c:Les/mg;


# direct methods
.method constructor <init>(Les/mg;Lcom/estrongs/fs/g;Landroid/os/ConditionVariable;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/mg$e;->c:Les/mg;

    iput-object p2, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    iput-object p3, p0, Les/mg$e;->b:Landroid/os/ConditionVariable;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 5

    const/4 v0, 0x0

    .line 1
    :try_start_0
    new-instance v1, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v1}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    const/4 v2, 0x1

    .line 2
    iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 3
    iget-object v3, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-static {v3, v1}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    const/16 v3, 0x30

    .line 4
    invoke-static {v1, v3}, Les/mg;->a(Landroid/graphics/BitmapFactory$Options;I)I

    move-result v3

    iput v3, v1, Landroid/graphics/BitmapFactory$Options;->inSampleSize:I

    .line 5
    iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inInputShareable:Z

    .line 6
    sget-boolean v3, Lcom/estrongs/android/pop/j;->w:Z

    const/4 v4, 0x0

    if-nez v3, :cond_0

    goto :goto_0

    :cond_0
    const/4 v2, 0x0

    :goto_0
    iput-boolean v2, v1, Landroid/graphics/BitmapFactory$Options;->inPurgeable:Z

    .line 7
    iput-boolean v4, v1, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 8
    iput-boolean v4, v1, Landroid/graphics/BitmapFactory$Options;->inDither:Z

    const/16 v2, 0x4000

    new-array v2, v2, [B

    .line 9
    iput-object v2, v1, Landroid/graphics/BitmapFactory$Options;->inTempStorage:[B

    .line 10
    sget-object v2, Landroid/graphics/Bitmap$Config;->RGB_565:Landroid/graphics/Bitmap$Config;

    iput-object v2, v1, Landroid/graphics/BitmapFactory$Options;->inPreferredConfig:Landroid/graphics/Bitmap$Config;

    .line 11
    iget-object v2, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2, v1}, Landroid/graphics/BitmapFactory;->decodeFile(Ljava/lang/String;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 12
    new-instance v2, Landroid/graphics/drawable/BitmapDrawable;

    invoke-direct {v2, v1}, Landroid/graphics/drawable/BitmapDrawable;-><init>(Landroid/graphics/Bitmap;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_1

    .line 13
    :try_start_1
    iget-object v0, p0, Les/mg$e;->c:Les/mg;

    iget-object v0, v0, Les/mg;->d:Landroidx/collection/LruCache;

    iget-object v1, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    invoke-interface {v1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1, v2}, Landroidx/collection/LruCache;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_2

    :catch_0
    move-exception v0

    goto :goto_1

    :catch_1
    move-exception v1

    move-object v2, v0

    move-object v0, v1

    .line 14
    :goto_1
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_2
    move-object v0, v2

    :cond_1
    if-nez v0, :cond_2

    .line 15
    new-instance v1, Ljava/io/File;

    iget-object v2, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 16
    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    .line 17
    :cond_2
    iget-object v1, p0, Les/mg$e;->c:Les/mg;

    iget-object v1, v1, Les/mg;->j:Ljava/util/HashMap;

    monitor-enter v1

    .line 18
    :try_start_2
    iget-object v2, p0, Les/mg$e;->c:Les/mg;

    iget-object v2, v2, Les/mg;->j:Ljava/util/HashMap;

    iget-object v3, p0, Les/mg$e;->a:Lcom/estrongs/fs/g;

    invoke-interface {v3}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Ljava/util/List;

    .line 19
    monitor-exit v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    if-eqz v2, :cond_3

    if-eqz v0, :cond_3

    .line 20
    new-instance v0, Les/mg$e$a;

    invoke-direct {v0, p0, v2}, Les/mg$e$a;-><init>(Les/mg$e;Ljava/util/List;)V

    invoke-static {v0}, Lcom/estrongs/android/util/o0;->a(Ljava/lang/Runnable;)V

    .line 21
    :cond_3
    iget-object v0, p0, Les/mg$e;->b:Landroid/os/ConditionVariable;

    if-eqz v0, :cond_4

    .line 22
    invoke-virtual {v0}, Landroid/os/ConditionVariable;->open()V

    :cond_4
    return-void

    :catchall_0
    move-exception v0

    .line 23
    :try_start_3
    monitor-exit v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    throw v0
.end method
